package com.example.springboot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
public class B {
    @Autowired
    A a;

    public void testB(){
        System.out.println(a);
        System.out.println(a);
    }
}
